Skip to content

🤖 refactor: auto-cleanup#3036

Merged
ThomasK33 merged 5 commits intomainfrom
auto-cleanup
Mar 23, 2026
Merged

🤖 refactor: auto-cleanup#3036
ThomasK33 merged 5 commits intomainfrom
auto-cleanup

Conversation

@mux-bot
Copy link
Contributor

@mux-bot mux-bot bot commented Mar 19, 2026

Periodic low-risk, behavior-preserving cleanups to the codebase.

Current change

Extract shared formatRepoCount helper.

MultiProjectGitStatusIndicator.tsx and MultiProjectDivergenceDialog.tsx
each defined an identical formatRepoCount(count) function. Extracted into
gitStatusFormatters.ts in the same directory and replaced both copies with
imports.

Previous changes

  • Extract shared capitalize utility (dedup from modelDisplay.ts and DelegationChart.tsx).

Validation

  • make typecheck — pass
  • make lint — pass
  • make fmt-check — pass (shfmt missing in CI env, pre-existing)

Auto-cleanup checkpoint: 76c0ded

@mux-bot
Copy link
Contributor Author

mux-bot bot commented Mar 19, 2026

@codex review

@chatgpt-codex-connector
Copy link

To use Codex here, create a Codex account and connect to github.

@mux-bot mux-bot bot force-pushed the auto-cleanup branch 3 times, most recently from 885532c to 13886db Compare March 21, 2026 08:09
@ThomasK33 ThomasK33 added this pull request to the merge queue Mar 22, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 22, 2026
@ThomasK33 ThomasK33 added this pull request to the merge queue Mar 22, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 22, 2026
mux-bot bot added 5 commits March 23, 2026 16:17
compareSets was exported from useStableReference.ts but never called
anywhere in the codebase — not in production code, not in tests.

Its sibling comparators (compareMaps, compareRecords, compareArrays) are
all actively used and tested; compareSets was speculatively added but
never wired up.
The asyncEventIterator async generator function was exported but never
imported anywhere in the codebase. Only its sibling createAsyncEventQueue
is actively used (by router.ts and withQueueHeartbeat.test.ts). Remove
the dead function to reduce surface area.
Four files (router.ts, workspaceService.ts, task_apply_git_patch.ts,
AgentBrowserSessionDiscoveryService.ts) each defined an identical
isPathInsideDir function. Extract it into src/node/utils/pathUtils.ts
and replace the copies with imports.
Two files (modelDisplay.ts, DelegationChart.tsx) each defined an identical
capitalize(str) function. Extracted into src/common/utils/capitalize.ts
and replaced both copies with imports.
Both MultiProjectGitStatusIndicator.tsx and MultiProjectDivergenceDialog.tsx
defined identical formatRepoCount(count) functions. Extract to a shared
gitStatusFormatters.ts module in the same directory.
@ThomasK33 ThomasK33 added this pull request to the merge queue Mar 23, 2026
Merged via the queue into main with commit 8ec0a10 Mar 23, 2026
23 of 24 checks passed
@ThomasK33 ThomasK33 deleted the auto-cleanup branch March 23, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant